﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MusicStore.Models
{
    /// <summary>
    /// 注册用户
    /// </summary>
    public class Createuser
    {
        [Key]
        [DisplayName("账号")]
        public string AdministratorId { get; set; }

        [Required(ErrorMessage = "*密码不能为空")]
        [DisplayName("密码")]
        [DataType(DataType.Password)]//密码不可见
        [StringLength(20, MinimumLength = 6)]
        public string Password { get; set; }

        [Required(ErrorMessage = "*密码不能为空")]
        [DisplayName("确认密码")]
        [Compare("Password", ErrorMessage = "确认密码与原始密码不一致")]
        [DataType(DataType.Password)]//密码不可见
        [StringLength(20,MinimumLength =6)]
        public string ConfirnPassword { get; set; }
    }
}